package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 好友对象 app_user_relation
 *
 * @author ruoyi
 * @date 2023-02-28
 */
public class AppUserRelation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crtTime;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 好友id
     */
    @Excel(name = "好友id")
    private Long friendId;

    private List<Long> userIds;

    /**
     * 不可见
     */
    private List<Long> unfriendIds;

    /**
     * 可见
     */
    private List<Long> friendIds;

    /**
     * （自己对好友设置）状态，0：朋友圈、聊天，1：仅聊天
     */
    @Excel(name = "", readConverterExp = "自=己对好友设置")
    private Integer selfState;

    /**
     * （自己对好友设置）不让他看我，0：关闭，1：开启
     */
    @Excel(name = "", readConverterExp = "自=己对好友设置")
    private Integer selfIsBeLooked;

    /**
     * （好友对自己设置）状态，0：朋友圈、聊天，1：仅聊天
     */
    @Excel(name = "", readConverterExp = "好=友对自己设置")
    private Integer otherState;

    /**
     * （好友对自己设置）他不看我，0：关闭，1：开启
     */
    @Excel(name = "", readConverterExp = "好=友对自己设置")
    private Integer otherIsLook;

    public List<Long> getUnfriendIds() {
        return unfriendIds;
    }

    public void setUnfriendIds(List<Long> unfriendIds) {
        this.unfriendIds = unfriendIds;
    }

    public List<Long> getFriendIds() {
        return friendIds;
    }

    public void setFriendIds(List<Long> friendIds) {
        this.friendIds = friendIds;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setFriendId(Long friendId) {
        this.friendId = friendId;
    }

    public Long getFriendId() {
        return friendId;
    }

    public List<Long> getUserIds() {
        return userIds;
    }

    public void setUserIds(List<Long> userIds) {
        this.userIds = userIds;
    }

    public void setSelfState(Integer selfState) {
        this.selfState = selfState;
    }

    public Integer getSelfState() {
        return selfState;
    }

    public void setSelfIsBeLooked(Integer selfIsBeLooked) {
        this.selfIsBeLooked = selfIsBeLooked;
    }

    public Integer getSelfIsBeLooked() {
        return selfIsBeLooked;
    }

    public void setOtherState(Integer otherState) {
        this.otherState = otherState;
    }

    public Integer getOtherState() {
        return otherState;
    }

    public void setOtherIsLook(Integer otherIsLook) {
        this.otherIsLook = otherIsLook;
    }

    public Integer getOtherIsLook() {
        return otherIsLook;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("crtTime", getCrtTime())
                .append("userId", getUserId())
                .append("friendId", getFriendId())
                .append("selfState", getSelfState())
                .append("selfIsBeLooked", getSelfIsBeLooked())
                .append("otherState", getOtherState())
                .append("otherIsLook", getOtherIsLook())
                .toString();
    }
}
